import base from '@/api/baseurl'
import request from '@/utils/request'


/**
 *
 * @param {*} query
 * @returns
 */
export function findConfiguration(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpf/findConfiguration',
    method: 'get',
    params: query
  })
}

export function addConfiguration(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpf/addConfiguration',
    method: 'post',
    data
  })
}


export function updateConfiguration(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpf/updateConfiguration',
    method: 'post',
    data
  })
}

//单行删除
export function deleteConfiguration(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpf/delConfiguration',
    method: 'get',
    params: query
  })
}

export function findwhsymbol(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/AccountCompositionFactor/findwhsymbol',
    method: 'get',
    params: query
  })
}

export function findrtsymbol(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/AccountCompositionFactor/findrtsymbol',
    method: 'get',
    params: query
  })
}

